import { service } from '@/common/tools/luch-request/index.js';

export function uploadWechatFile(data) {
    return service.request({
            url: '/applet/Upload/uploadWechatFile',
            method: 'post',
            data,
            noAuth: true
        }
    )
}

//查询云打印类型
export function getCloudPrintType(params) {
    return service.request({
            url: '/applet/CloudPrintType/getCloudPrintType',
            method: 'GET',
            params
        }
    )
}

// 生成云打印订单
export function createCloudPrinterOrder(data) {
    return service.request({
            url: '/applet/Order/CreateCloudPrinterOrder',
            method: 'post',
            data
        }
    )
}

// 向指定云打印机发送打印请求
export function sendOrderToCloudPrinter(data) {
    return service.request({
            url: '/applet/WebSocket/sendOrderToCloudPrinter',
            method: 'post',
            data
        }
    )
}
